﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetroFramework.Forms;

namespace PhotonTestClient.Forms.Account
{
    public partial class RegisterAccount : MetroForm
    {
        public PhotonTestClient OwnerMetroForm { private get; set; }

        public RegisterAccount()
        {
            InitializeComponent();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void registerButton_Click(object sender, EventArgs e)
        {
            OwnerMetroForm.RegisterAccount(foreName.Text, lastName.Text, loginName.Text, passWord.Text);
            Close();
        }
    }
}
